p
  = link_to '导出', list_admins_path(:format => :xls) , class: 'btn btn-success btn-xs font-style'
= paginate @users
table.table.table-inverse.table-striped.table-bordered.table-hover
  thead
    tr
      th ID
      th 用户名
      th 昵称
      td 国家
      td 微信注册的地区信息
      td 头像
      th 电话号码
      th 会员状态
      th 宠物
      th 宠物日期
      th 地址
  tbody
    - @users.each do |user|
      tr
        td = user.id
        td = user.name
        td = user.nickname
        td = user.country
        td = user.province + user.city if user.city
        td 
          img style="width: 30px;height: 30px;" src="#{user.headimgurl}"
        td = user.phone
        td = user.activated ? '是' : '否'
        td = user.pets
        td = user.pet_birth
        td = user.address.province + user.address.city + user.address.district + user.address.street if user.address
    
